/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx.mapper;

import cn.webrx.pojo.Book;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>Project: mybatis2021 - BookMapper
 * <p>Powered by webrx On 2021-10-25 16:10:06
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public interface BookMapper {
    public int count();

    public int count(String w);


    //@Select("select * from book limit #{start},#{limit}")
    public List<Book> page(@Param("start") int start, @Param("limit") int limit);

    public List<Book> page();


    @Select("select * from book")
    public List<Book> pp();


    @Select("select id,name from book")
    public List<Map<String, Object>> myByPage();


}
